package com.test.realcityalfa.frmwrk;

import com.test.realcityalfa.ResultListActivity;
import com.test.realcityalfa.activityswitchers.ActivitySwitch;

import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.View;

public class DashboardOnClickListener extends CustomOnClickListener
{
	private Activity _activity;
	
	public DashboardOnClickListener(Activity activity)
	{
		_activity = activity;
	}
	
	@Override
	public void onClickExecutor(View v) 
	{
		switch(v.getId())
		{
			case com.test.realcityalfa.R.id.sellActivity:
				//ActivitySwitch activitySwitch = new ActivitySwitch(ResultListActivity.class);
				//activitySwitch.goToNextActivity(_activity, 0);
				_activity.startActivity(new Intent(this._activity.getApplicationContext(), ResultListActivity.class));
				break;
			default:
				Log.d(getClass().getName(), "Not supported action for " + v.getId());
		}
		
	}

}
